import * as echarts from 'echarts';
import 'echarts-gl'
import BeiJing from "@/config/data/map/BeiJing";

echarts.registerMap('BeiJing', BeiJing);

// 基于准备好的dom，初始化echarts实例
const init = (el, option) => {
    const myChart = echarts.init(el);
    myChart.setOption(option)
}

const UtilEcharts = {
    init
}

export default UtilEcharts